package com.feizi.service.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feizi.entity.OrderdetailEntity;
import com.feizi.entity.OrderinfoEntity;
import com.feizi.entity.ShopcartEntity;
import com.feizi.mapper.OrderMapper;
import com.feizi.mapper.ShopcartMapper;
import com.feizi.service.OrderService;
import com.feizi.service.ShopcartService;

@Service
public class OrderServiceImpl implements OrderService{
	
	@Autowired
	private OrderMapper orderMapper;

	@Override
	public int addOrderdetail(OrderdetailEntity ode) {
		// TODO Auto-generated method stub
		return orderMapper.addOrderdeteil(ode);
	}

	@Override
	public int addOrderinfo(OrderinfoEntity oie) {
		// TODO Auto-generated method stub
		return orderMapper.addOrderinfo(oie);
	}

	@Override
	public List<OrderinfoEntity> findOrderinfo(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.findOrderinfo(orderid);
	}

	@Override
	public List<OrderinfoEntity> findOrderif(OrderinfoEntity oie) {
		// TODO Auto-generated method stub
		return orderMapper.findOrderif(oie);
	}

	@Override
	public List<OrderdetailEntity> findOrderdetail(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.findOrderdetail(orderid);
	}

	@Override
	public int upGoods(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.upGoods(orderid);
	}

	@Override
	public int upEstimate(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.upEstimate(orderid);
	}

	@Override
	public int upOrderinfo(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.upOrderinfo(orderid);
	}

	@Override
	public int findOdStatus(String orderid) {
		// TODO Auto-generated method stub
		return orderMapper.findOdStatus(orderid);
	}

	@Override
	public int upOdStatus(int id) {
		// TODO Auto-generated method stub
		return orderMapper.upOdStatus(id);
	}

}
